(* core.ml
 *
 * This file is part of camEngine
 * 
 * camEngine - A 3d motor for ocaml
 * Copyright (C) 2009 DAVY Guillaume <davyg2@gmail.com>
 *
 * camEngine is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * camEngine is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with camEngine.  If not, see <http://www.gnu.org/licenses/>.
 *)
 
open Matrice;;
open Vec3d;;
open Vec2d;;
open Driver;;
open Scanf;;
open Scanning;;
open Array;;
open Mesh;;
open Node;;
open Scene;;

(****************** FAIRE UN camEngine.cmi pour remplacer tous les opens et pour inclure dans les examples**********************)

class core = object
	val mutable d = new driver
	val mutable s = new scene
	
	method init =
		d#init (new vec2d 800. 600.) (new vec2d 100. 100.) "camEngine";
		s#init d;
		
	method close =
		s#close;
		d#close;
	
	method getDriver = d;
	
	method getScene = s;
end;;


